import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { RouteReuseStrategy } from '@angular/router';

import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { MsgboxUtil } from 'src/helper/MsgboxUtil';
import { API } from 'src/api/API';
import { YY1API } from 'src/api/YY1API';
import { StoreHelper } from 'src/helper/StoreHelper';
import { AccountAPI } from 'src/api/AccountAPI';

@NgModule({
  declarations: [AppComponent],
  entryComponents: [],
  imports: [BrowserModule,
    IonicModule.forRoot({
      backButtonText: '',
      mode: 'ios'
    }),
    AppRoutingModule],
  providers: [
    StatusBar,
    SplashScreen,
    { provide: RouteReuseStrategy, useClass: IonicRouteStrategy },
    MsgboxUtil,
    API,
    AccountAPI,
    YY1API,
    StoreHelper
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
